<?php

  require_once "JooS/Server/Exception.php";

  class JooS_Server_Controller_Exception extends JooS_Server_Exception {
    private $_headers = array(), $_data = array();

    public function __construct($message, $code) {
      parent::__construct($message, $code);
    }

    public function getHeaders() {
      return sizeof($this->_headers) ? $this->_headers : null;
    }

    public function setHeaders($headers) {
      $this->_headers = $headers;
      return $this;
    }

    public function getData() {
      return $this->_data;
    }

    public function setData($data) {
      $this->_data = $data;
      return $this;
    }
  }

?>